import request from '@/utils/request'

// 查询关区代码列表
export function listCustoms(query) {
  return request({
    url: '/system/customs/list',
    method: 'get',
    params: query
  })
}

//获取关区代码下来列表
export function findListCustoms() {
  return request({
    url: '/system/customs/findList',
    method: 'get'
  })
}

// 查询关区代码详细
export function getCustoms(customsCode) {
  return request({
    url: '/system/customs/getInfo/' + customsCode,
    method: 'get'
  })
}

// 新增关区代码
export function addCustoms(data) {
  return request({
    url: '/system/customs/add',
    method: 'post',
    data: data
  })
}

// 修改关区代码
export function updateCustoms(data) {
  return request({
    url: '/system/customs/edit',
    method: 'post',
    data: data
  })
}

// 删除关区代码
export function delCustoms(customsCode) {
  return request({
    url: '/system/customs/remove/' + customsCode,
    method: 'get'
  })
}

// 导出关区代码
export function exportCustoms(query) {
  return request({
    url: '/system/customs/export',
    method: 'get',
    params: query
  })
}
